using ToffeeHttp.Runtime.Core;
using UnityEngine;
using UnityEngine.Networking;

namespace ToffeeHttp.Runtime
{
    public class MsgChannelString : IMsgChannel
    {
        public object Decoder(UnityWebRequest response) { return response.downloadHandler.text; }

        public object Encoder(object msg)
        {
            Debug.Log($"发送消息: {msg}");
            return msg;
        }

    }
}